//
//  SearchViewController.m
//  iBook
//
//  Created by wangjing on 14/12/3.
//  Copyright (c) 2014年 wikiflyer. All rights reserved.
//

#import "SearchViewController.h"

@interface SearchViewController ()

@end

@implementation SearchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.navigationController setNavigationBarHidden:YES];
    
    self.searchBar.delegate = self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar{
    
    NSLog(@"search Clicked : %@",searchBar.text);
    _searchText.text = searchBar.text;
    
    //隐藏键盘
    [searchBar resignFirstResponder];
}

@end
